package com.gzu.emr.mapper;

import com.gzu.emr.dto.Diagnosis;
import com.gzu.emr.dto.MedicalRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MedicalRecordMapper {

    int insertMedicalRecord(MedicalRecord record);

    MedicalRecord selectLastRecordByPatientId(Integer id);

    List<MedicalRecord> listRecords();

    List<MedicalRecord> listRecordsByPatientId(Integer id);

    List<MedicalRecord> listRecordsByPatientName(String name);
}
